<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
<title>教学大纲信息管理</title>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../js/jquery.pagination.js"></script>
<script type="text/javascript" src="../../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../js/public.js"></script>
<script type="text/javascript" src="../../js/http.js"></script>
<script type="text/javascript" src="../../js/alert.js"></script>
<script type="text/javascript" src="../../js/jquery-ui/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../js/jquery-ui/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="../../css/bootstrap.css">
</head>
<body>
	<div class="right_mainH4">
		<p>
			教学大纲信息管理 <small>Control panel</small>
		</p>
	</div>
	<div>
		<form role="form" style="padding: 10px 0 10px 20px;">
			<span>查询</span>
			<select id="query" style="width: 90px;">
				<option value="请选择">-请选择-</option>
				<option value="bTitle">所属教学项目</option>
				<option value="studyContent">学习内</option>
				<option value="aim">学习目标</option>
				<option value="c1XueShiNum">C1学时</option>
				<option value="c2XueShiNum">C2学时</option>
				<option value="carType">学习车型</option>
			</select>
			<input type="text" id="keywords" placeholder="Key" style="width:120px;">
	
			<button type="button" onclick="searchPage(1,10);" class="btn btn-success">查询</button>
		</form>
	</div>
	
	<table class="table table-bordered" id="datas">
		 <tr>
			<td name="ids">ID</td>
			<td name="bTitle">项目部分</td>
			<td name="studyContent">学习内容</td>
			<td name="aim">学习目标</td>
			<td name="carType">学习车型</td>
			<td name="c1XueShiNum">C1学时</td>
			<td name="c2XueShiNum">C2学时</td>
			<td name="id" other="xueShiModel">操作</td>
		</tr>
	</table>
	
	<!-- 分页控件 -->
    <div class="pager">
    </div>
    
     <!--学时信息 -->
     <div id="xueShiModelDiv" style="display:none;" title="学时信息">
     	<iframe src="" style="width:100%;height: 100%" frameborder="no" marginwidth="0" marginheight="0" allowtransparency="yes"></iframe>
     </div>
     
    <script type="text/javascript">
    	searchPage(1,10);
    	
    	//分页查询
    	function searchPage(pageNo,pageSize){
    		$.ajax({
    			url : "../../xueShiModel/find.ao",
    			type : 'POST',
    			data : {
    				"pageNo" : pageNo,
    				"pageSize" : pageSize,
    				"query" : $("#query").val(),
    				"keywords" : $("#keywords").val()
    			},
    			beforeSend : ajaxstar,
    			complete : ajaxend,
    			cache : false,
    			dataType : "json",
    			success : function(data) {
    				if (data["state"] == "success") {
    					insertTr(data, 0);
    				} else {
    					sAlert(data["result"]);
    				}
    			}
    		});
    		
    	}
    	
    	//查看明细
    	function look(id){
			$("#xueShiModelDiv").find("iframe").attr("src","info.html?id="+id);
			$("#xueShiModelDiv").dialog({
				title : "学时信息",
				resizable : false,
				width : '60%',
				height : 600,
				resizable : true,
				modal : true,
				buttons : {
					"关闭" : function() {
						$(this).dialog("close");
					}
				}
			});
    	}
    	
    </script>
</body>
</html>